package com.bolt.common;

/**
 * 
 * @author 米超
 * 2015
 * web常量
 * 
 */
public abstract class BoltConstants {
	/**
	 * 路径分隔符
	 */
	public static final String SPT = "/";
	/**
	 * 索引页
	 */
	public static final String INDEX = "index";
	/**
	 * 默认模板
	 */
	public static final String DEFAULT = "default";

	/**
	 * UTF-8编码
	 */
	public static final String UTF8 = "UTF-8";
	/**
	 * 提示信息
	 */
	public static final String DEFAULT_MESSAGE = "message";

	public static final String DEFALUT_CONFIRM_URL = "/include/default_confirm";
	/**
	 * 服务端参数有效性验证提示信息
	 */
	public static final String BEAN_VALIDATOR_MESSAGE = "constraintViolations";
	/**
	 * cookie中的JSESSIONID名称
	 */
	public static final String JSESSION_COOKIE = "JSESSIONID";
	/**
	 * url中的jsessionid名称
	 */
	public static final String JSESSION_URL = "jsessionid";
	/**
	 * HTTP POST请求
	 */
	public static final String POST = "POST";
	/**
	 * HTTP GET请求
	 */
	public static final String GET = "GET";
    /**
     * cookie 路径
     */
	public static  final String COOKIE_PATH = "/";
    /**
     * cookie所在的域
     */
    public static  final String COOKIE_DOMAIN = "";
    /**
     *  组件模板目录
     */
    public static final String BOLT_UI_TEMPLATEDIR = "bolt.ui.templateDir";
    /**
     * JSON 资源
     */
    public static final String CONTENT_JSON_TYPE = "application/json; charset=utf-8";
    /**
     * 组件模板主題
     */
    public static final String BOLT_UI_THEME = "bolt.ui.theme";
    /**
     * 视图组件配置默认中路径
     */
    public static final String DEFAULT_VIEW_CONFIG_PATH = "bolt.view.defaultPath";

    public static final String  VIEW_PATH = "view.path";


    public static String DEFAULT_BOLT_UI_TEMPLATEDIR = "templates";

    public static String DEFAULT_BOLT_UI_THEME = "bootstrap";
    /**
     * 默认主面模板
     */
    public static final String DEFAULT_MAIN_VIEW_TEMPLATEDIR = "/layouts/main_layout";

    /**
     * 视图根目录
     */
    public static final String VEIW_BASE_PATH = "/WEB-INF/jsp";

    /**
     *  统用表单值属性名
     */
    public static final String FORM_ITME_VALUE_ATTRIBUTE = "inputValue";

    /**
     * 分页总行数
     */
    public static final String PAGE_TOTALROW_KEY ="totalRow";
    /**
     * 分页当前页号
     */
    public static final String PAGE_CURRENT_KEY ="pageNumber";

    /**
     * 分页数
     */
    public static final String PAGE_SIZE ="pageSize";

    /**
     *  分页数据
     */
    public static final String PAGE_LIST_KEY ="list";


    /**
     * 类似OAuth的APP认证AccessToken请求Header名称"
     */
    public final static String APP_AUTH_ACCESS_TOKEN = "ACCESS-TOKEN";

    /**
     * 统一分配置用户时系统默认密码
     */
    public final static String DEAULT_PASSWORD = "123456";

    /**
     * 超级管理员角色
     */
    public final static String ROLE_SUPER_USER = "ROLE_SUPER_USER";

    /**
     * 默认值
     */
    public static final String NONE_VALUE = "none";

    /** 多个属性间OR关系的分隔符. */
    public static final String OR_SEPARATOR = "_OR_";


    /**
     * JWT HTTP 头部标识
     */
    public static String AUTH_HEADER = "Authorization";

    /**
     * token 缓存名称
     */
    public static final String JWT_CACHE="JWT";

    /**
     *  失效时间
     */

    public static final Long EXPIRATION = 3600L;

    /**
     * 内部
     */
    public static  final String FROM_IN = "Y";


    /**
     * 标志
     */
    public static final  String FROM = "from";


    public static final String CLIENT_ID="clientId";


    public static final String ONLINEKEY = "onlineKey";

    /* 通过旧邮箱重置邮箱 */
    public final static String EMAIL_RESET_EMAIL_CODE_KEY = "email_reset_email_code_";

    /* 登录验证 */
    public final static String LOGIN_VERIFY_CODE_KEY = "login_verify_code_key_";

    /**
     * 并行默认最大等待时长
     */
    public static int PARALLEL_MAXWAIT_SECONDS = 1800;

    public static String DEFAULT_PARENT_FIELD= "isParent";
}
